﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using University.Workshop.Model;

namespace University.Workshop.Business
{
    public static class AmbulanceManager
    {
        public static String AmbulanceRegister(Ambulance newAmbulance)
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceRegister(newAmbulance);
        }

        public static ICollection<Ambulance> AmbulanceSearch()
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceSearch();
        }

        public static string AmbulanceModify(string ambulanceId, Ambulance ambulanceModified)
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceModify(ambulanceId, ambulanceModified);
        }

        public static bool AmbulanceExists(string ambulanceId)
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceExists(ambulanceId);
        }

        public static Ambulance ObtainAmbulance(string ambulanceId)
        {
            return DataAccess.AmbulanceDataAccess.ObtainAmbulance(ambulanceId);
        }

        public static string DeleteAmbulance(string ambulanceId)
        {
            return DataAccess.AmbulanceDataAccess.DeleteAmbulance(ambulanceId);
        }

        public static string AssignAmbulance(string ambulanceId)
        {
            return DataAccess.AmbulanceDataAccess.AssignAmbulance(ambulanceId);
        }

        /*public static string UnassignAmbulance(string ambulanceId)
        {
            return DataAccess.AmbulanceDataAccess.UNAssignAmbulance(ambulanceId);
        }*/

        public static ICollection<Ambulance> AmbulanceAssignedSearch()
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceAssignedSearch();
        }

        public static ICollection<Ambulance> AmbulanceFreeSearch()
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceFreeSearch();
        }

        /*public static string RegisterCase(AmbulanceCase ambulanceCase)
        {
            return DataAccess.AmbulanceDataAccess.AmbulanceCaseRegister(ambulanceCase);
        }*/
        
    }
}
